package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 保养工单无法作业异常登记记录
 */
@Data
@TableName(value = "blade_maintain_check_error_log")
public class MaintainCheckErrorLog implements Serializable {

	@TableId(value = "id")
	private Long id;

    /**
     * 检查项历史记录id
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 描述
     */
    @TableField(value = "error_desc")
    private String errorDesc;

    /**
     * 附件
     */
    @TableField(value = "error_img",typeHandler = JacksonTypeHandler.class)
    private List<HashMap<String,String>> errorImg;

	/**
	 * 更新时间
	 */
	@TableField(value = "create_time")
	private Date createTime;

	@TableField(exist = false)
	private String userName;
}
